Find the three-digit code of primes
Riddle:
I am a three-digit number. All digits are prime. One digit is even. All digits different. The sum of the first and last digits is 8. The sum of the first two digits is 6. What am I?
Answer:
Answer: 235. Explanation: Prime digits: 2,3,5,7. One digit is even → 2. First + last = 8 → 2+6? no; 2+5=7; no; 3+5=8 works. First two =6 → 2+3=5 no; 3+5=8 no; 2+3=5 no; 2+3=6 works. So 2,3,5 fits.